using System;
namespace ch.ethz.ssh2.crypto.cipher
{
	
	/// <summary> NullCipher.
	/// 
	/// </summary>
	/// <author>  Christian Plattner
	/// </author>
	/// <version>  2.50, 03/15/10
	/// </version>
	public class NullCipher : BlockCipher
	{
		virtual public int BlockSize
		{
			get
			{
				return blockSize;
			}
			
		}
		private int blockSize = 8;
		
		public NullCipher()
		{
		}
		
		public NullCipher(int blockSize)
		{
			this.blockSize = blockSize;
		}
		
		public virtual void  init(bool forEncryption, byte[] key)
		{
		}
		
		public virtual void  transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff)
		{
			Array.Copy(src, srcoff, dst, dstoff, blockSize);
		}
	}
}